Pod::Spec.new do |s|
  s.name = "JLOCRService"
  s.version = "0.1.0"
  s.summary = """
  OCR SDK版本
  当前微众OCR版本为：v4.7.3
  """
  s.homepage         = 'https://jlpay.com'
  s.license          =  "MIT"
  s.authors = {"lz"=>""}
  s.description = "OCR集成版本"  
  #s.source = { :path => '.' }
  s.source = {  :git => 'https://gitlab.jlpay.com/access-services/common-components/ios-component.git',  :tag => "#{s.name}_v#{s.version}" }

  s.ios.deployment_target    = '9.0'
  s.swift_version = '5.0'

  s.subspec 'JLWBOCRService' do |ss|
    #路径
    ssPath = "JLThirdSupportService/JLThirdSupportService/Classes/JLOCRService/Tencent/"
    
    ss.library = 'c++'
    ss.frameworks = "CoreTelephony", "CoreServices", "CoreMedia", "AssetsLibrary","AVFoundation","WebKit","SystemConfiguration"
  
    ss.resource_bundles = {
      'WBOCRService' => [ssPath + 'WBOCRService/Libs/WBOCRService.bundle/*.png']
    }
    
    ss.subspec 'manager' do |manager|
      #代码文件
      manager.source_files = ssPath +'Classes/*.{h,m,swift}'
      manager.dependency 'JLOCRService/JLWBOCRService/BinaryLib'
    end
    
    ss.subspec 'BinaryLib' do |lib|
      #lib.vendored_libraries = "WBOCRService/Libs/*.a"
      lib.vendored_frameworks = ssPath + "WBOCRService/Libs/*.framework"
      
      lib.dependency "JLFaceService/JLTencentCloudHuiyanSDKFace_framework/commonLibs","0.1.1"
    end
  end

  


  
end
